package cn.edu.ylu.gaoxin.controller;

import com.jfinal.core.Controller;

import cn.edu.ylu.gaoxin.model.GoodsInfo;

/**
 * @author pangPython
 *
 */
public class GoodsController extends Controller {
		
	public void index(){
		//1.
		String goods_id = null;
		GoodsInfo gi = null;
		//2.
		goods_id = getPara(0);
		gi = GoodsInfo.dao.getOne(goods_id);
		//3.
		//System.out.println(gi.getIntroduce()+"-------");
		
		setAttr("goods_info",gi);
		render("/introduction.html");
	}
}
